package com.huawang.mdesign.model.service.constant;

import com.huawang.business.constants.ErrorLevelEnum;
import com.huawang.business.constants.ResultInfo;

public enum ModelErrorCode implements ResultInfo {
    MERGE_ERROR(11001, "合并失败", "合并失败", ErrorLevelEnum.INFO);
    private final int code;
    private final String title;
    private final String message;
    private final ErrorLevelEnum errorLevelEnum;

    ModelErrorCode(int code, String title, String message, ErrorLevelEnum errorLevelEnum) {
        this.code = code;
        this.title = title;
        this.message = message;
        this.errorLevelEnum = errorLevelEnum;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getTitle() {
        return title;
    }

    @Override
    public String getMessage() {
        return message;
    }

    @Override
    public ErrorLevelEnum getErrorLevelEnum() {
        return errorLevelEnum;
    }
}
